'''
Created on Apr 10, 2012

@author: ke
'''
from google.appengine.ext import db

class QueryHistory(db.Model):
    '''
    save query history in the datastore
    '''
    stock_tickers = db.StringProperty()
    length = db.IntegerProperty()
    expected_return = db.FloatProperty()
    user = db.UserProperty()
    query_date = db.DateProperty()
    
class WordFrequencyHistory(db.Model):
    query_url = db.StringProperty()
    user = db.UserProperty()
    query_date = db.DateProperty()        

class TwitterSentiment(db.Model):
    query1 = db.StringProperty()
    query2 = db.StringProperty()
    user = db.UserProperty()
    query_date = db.DateProperty()

class GeneticHistory(db.Model):
    var1 = db.StringProperty()
    var2 = db.StringProperty()
    target = db.StringProperty()
    user = db.UserProperty()
    query_date = db.DateProperty()